package basic;

import java.io.File;

public class FileDemo1 {
    public static void main(String[] args) {
        // 传入目录绝对路径
        File dir = new File("C:\\Users\\Colorful\\Desktop\\imooc\\images");
        // 传入文件绝对路径
        File file = new File("C:\\Users\\Colorful\\Desktop\\imooc\\Hello.java");
        // 打印两个File对象
        System.out.println(dir);
        System.out.println(file);
    }
}
